package com.ag.oa.core.service.impl;

import com.ag.oa.core.dao.ISelectionDao;
import com.ag.oa.core.entity.vo.SelectionVO;
import com.ag.oa.core.service.ISelectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("selectionServiceImpl")
public class SelectionServiceImpl implements ISelectionService {

    @Autowired
    private ISelectionDao selectionDao ;

    @Override
    public List<SelectionVO> getSelectionByQuesId(String quesId){
        return selectionDao.getRelateSelection(quesId);
    }

    @Override
    public void addSelectionWithQuesId(String selId, String questionId,String selText,Integer isRight){
         selectionDao.addSelections(selId,questionId,selText,isRight);
    }

}
